package spring.cloud.tasks.api.database.repository;

import org.springframework.stereotype.Repository;
import spring.cloud.tasks.api.database.entity.ZooKeeperClusterDto;

import java.util.List;

@Repository
public interface ZooKeeperClusterDtoRepository {


    int insert(ZooKeeperClusterDto zooKeeperClusterInfo);

    int updateByZooKeeperClusterKey(ZooKeeperClusterDto zooKeeperClusterInfo);

    int deleteByZooKeeperClusterKey(String zooKeeperClusterKey);

    ZooKeeperClusterDto selectByZooKeeperClusterKey(String zooKeeperClusterKey);

    List<ZooKeeperClusterDto> selectAll();


}
